<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Hello word</title>
    <script src='../vue.js'></script>
</head>

<body>
    <div id="app">
        <input type="text" v-model="inputeValue">
        <button v-on:click="handleBtnClick">提交</button>
        <ul>
            <li v-for="item in list">{{item}}</li>
        </ul>
    </div>
</body>

</html>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            list: [],
            inputeValue: ''
        },
        methods: {
            handleBtnClick: function () {
                this.list.push(this.inputeValue);
                this.inputeValue = ''
            }
        }
    })
</script>